package myheaptree;

public class Test {
    public static void main(String[] args) {
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        MyHeapTree myHeapTree = new MyHeapTree();
        myHeapTree.initHeap(array);
        myHeapTree.createHeap();
        System.out.println("===插入元素==");
        myHeapTree.offer(88);
        System.out.println("==删除堆顶元素==");
        System.out.println(myHeapTree.poll());
    }
}
